package xin.nick.persistence.core.entity;

import xin.nick.persistence.core.ExecutorTypeEnum;

/**
 * @author Nick
 * @date 2021/5/5
 * @description 映射执行语句对象
 */
public class MappedStatement {
    /**
     * statementID
     */
    private String id;

    /**
     * 传入参数类型
     */
    private Class<?> parameterType;

    /**
     * 返回参数类型
     */
    private Class<?> resultType;

    /**
     * 配置文件中sql语句
     */
    private String sql;

    /**
     * 绑定的sql对象
     */
    private BoundSql boundSql;

    /**
     * 执行方式
     */
    private ExecutorTypeEnum executorType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getParameterType() {
        return parameterType;
    }

    public void setParameterType(Class<?> parameterType) {
        this.parameterType = parameterType;
    }

    public Class<?> getResultType() {
        return resultType;
    }

    public void setResultType(Class<?> resultType) {
        this.resultType = resultType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public BoundSql getBoundSql() {
        return boundSql;
    }

    public void setBoundSql(BoundSql boundSql) {
        this.boundSql = boundSql;
    }

    public ExecutorTypeEnum getExecutorType() {
        return executorType;
    }

    public void setExecutorType(ExecutorTypeEnum executorType) {
        this.executorType = executorType;
    }
}
